<?php
/**
 * Pizzapack Administrator entry point
 * 
 * @package    	com_pizzapack
 * @subpackage 	components
 * @link 				http://www.digitar.net
 * @license			GNU/GPL
 */
	
	// no direct access
	defined( '_JEXEC' ) or die( 'Restricted access' );
	// Access check.
	if (!JFactory::getUser()->authorise('core.manage', 'com_pizzapack')) {
		return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
	}
	// Require the base controller
	require_once( JPATH_COMPONENT.DS.'controller.php' );
	
	// Create the controller
	$controller =  new PizzapackController();
	
	//Perform the requested task
	$controller->execute( JRequest::getVar('task', 'display'));
	
	//Redirect if set by the controller
	$controller->redirect();